package chapter04;

import java.util.Arrays;
import java.util.Scanner;

public class Day13 {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        int [] num = new int[3];
        for (int i = 0; i < num.length; i++) {
            System.out.println("请输入第"+(i+1)+"个数：");
            num[i] = input.nextInt();
        }
       Arrays.sort(num);
        System.out.print("从小到大的排序");
        for (int i = 0; i < num.length; i++) {
            System.out.print("    "+num[i]);
        }

    }
}
